home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / gr564s.zip / SRC / MS / BOR.MK next >
Makefile  |  1993-08-02  |  7KB  |  230 lines

  1. # $Id: Makefile,v 5.20 1992/07/28 16:12:44 eggert Exp $
  2. # Copyright (C) 1982, 1988, 1989 Walter Tichy
  3. # Copyright 1990, 1991, 1992 by Paul Eggert
  4. #   Distributed under license by the Free Software Foundation, Inc.
  5. #
  6. # This file is part of RCS.
  7. #
  8. # RCS is free software; you can redistribute it and/or modify
  9. # it under the terms of the GNU General Public License as published by
  10. # the Free Software Foundation; either version 2, or (at your option)
  11. # any later version.
  12. #
  13. # RCS is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with RCS; see the file COPYING.  If not, write to
  20. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  21. #
  22. # Report problems and direct all questions to:
  23. #
  24. #    rcs-bugs@cs.purdue.edu
  25. #
  26.  
  27. # default target
  28. default : all
  29.  
  30. # See README for more information on the configuration section.
  31. # ----- start of configuration section -----
  32.  
  33. # Borland makefile definitions
  34.  
  35. #    $Id: bor.mkh,v 1.7 1992/07/28 16:12:44 eggert Exp $
  36.  
  37. BINDIR = ..\bin
  38.  
  39. #CC_286 = -1
  40. CC_286 =
  41.  
  42. CC_D = -Dbad_creat0=1 -Dbad_chmod_close=1 -Ddeclare_fdopen=1 -Ims\$(s)
  43.  
  44. CC_MODEL = s
  45.  
  46. !if $(BCC) < 3
  47. CC_O = -A -m$(CC_MODEL) -G -O -Z -d -w-par -w-pia
  48. !else
  49. CC_O = -A -m$(CC_MODEL) -Ox -d -w-par -w-pia -w-pro
  50. !endif
  51.  
  52. !if $(DEBUG)
  53. CC_O = $(CC_O) -v -N
  54. !endif
  55.  
  56. CFLAGS = $(CC_286) $(CC_D) $(CC_O)
  57.  
  58. INSTALL = -copy
  59.  
  60. !if $(DEBUG)
  61. LD_V = /v
  62. !else
  63. LD_V =
  64. !endif
  65.  
  66. LDFLAGS = $(LD_V)/c/n/x
  67.  
  68. LIB = \borlandc\lib\$(s)
  69.  
  70. LOGIN_FLAGS = -A-
  71.  
  72. OS = dos
  73.  
  74. REMOVE = -del
  75.  
  76. !if $(BCC) < 3
  77. UTIME = utime.obj
  78. !else
  79. UTIME =
  80. !endif
  81.  
  82.  
  83. LDLIBS = c$(CC_MODEL)
  84.  
  85. OTHER_OBJECT = getcwdsl.obj login$(OS).obj spawnvpq.obj $(UTIME)
  86.  
  87.  
  88. LINK = tlink c0$(CC_MODEL)$(LD_V) $(LIB)wildargs $(OTHER_OBJECT)
  89.  
  90. # makefile definitions for MS-DOS and OS/2
  91.  
  92. #    $Id: ms.mkh,v 1.7 1992/07/28 16:12:44 eggert Exp $
  93.  
  94. # empty string to avoid makefile misparsing of \ at line end with buggy makes
  95. s =
  96.  
  97. TESTPREFIX = ms\$(s)
  98.  
  99. o = .obj
  100. x = .exe
  101.  
  102. conf.h : ms\conf.h
  103.     copy ms\conf.h .
  104.     echo "/* */" >> $@
  105.  
  106. login$(OS)$(o) : ms\login$(OS).c
  107.     $(CC) $(CFLAGS) $(LOGIN_FLAGS) -c ms\login$(OS).c
  108.  
  109. !if $(BCC) < 3
  110. DIRENT = dirent$(o)
  111. dirent$(o) : ms\dirent.c
  112.     $(CC) $(CFLAGS) -c ms\dirent.c
  113. !endif
  114.  
  115. getcwdsl$(o) : ms\getcwdsl.c
  116.     $(CC) $(CFLAGS) -c ms\getcwdsl.c
  117.  
  118. spawnvpq$(o) : ms\spawnvpq.c
  119.     $(CC) $(CFLAGS) -c ms\spawnvpq.c
  120.  
  121. utime$(o) : ms\utime.c
  122.     $(CC) $(CFLAGS) $(LOGIN_FLAGS) -c ms\utime.c
  123.  
  124. # On non-Unix hosts you must manually create and edit conf.h from conf.heg.
  125.  
  126. # ----- end of configuration section -----
  127. # You shouldn't have to change anything past this point.
  128.  
  129.  
  130. # Avoid brain damage in some versions of 'make'.
  131. SHELL = /bin/sh
  132.  
  133. # all commands
  134. RCSCOMMANDS = ci$(x) co$(x) ident$(x) merge$(x) \
  135.     rcs$(x) rcsclean$(x) rcsdiff$(x) rcsmerge$(x) rlog$(x)
  136.  
  137. all : $(RCSCOMMANDS)
  138.  
  139. install : all
  140.     $(INSTALL) ci$(x) $(DESTBINDIR)
  141.     $(INSTALL) co$(x) $(DESTBINDIR)
  142.     $(INSTALL) ident$(x) $(DESTBINDIR)
  143.     $(INSTALL) merge$(x) $(DESTBINDIR)
  144.     $(INSTALL) rcs$(x) $(DESTBINDIR)
  145.     $(INSTALL) rcsclean$(x) $(DESTBINDIR)
  146.     $(INSTALL) rcsdiff$(x) $(DESTBINDIR)
  147.     $(INSTALL) rcsmerge$(x) $(DESTBINDIR)
  148.     $(INSTALL) rlog$(x) $(DESTBINDIR)
  149.  
  150. # Install RCS and (if applicable) GNU diff before running these tests.
  151. # To test RCS before installing it, see README.
  152. RCSTEST = PATH=$(BINDIR):$(DIFFPREFIX).:$$PATH sh $(TESTPREFIX)rcstest
  153. installtest :
  154.     $(RCSTEST)
  155. installdebug :
  156.     $(RCSTEST) -v
  157.  
  158. clean :
  159.     $(REMOVE) a.* *$(o) conf.h conf.err $(RCSCOMMANDS) rcsvers.c
  160.  
  161.  
  162. rcsvers.c : ../Version
  163.     ( \
  164.         echo '#include "rcsbase.h"' && \
  165.         echo 'char const RCS_version_string[] = "'"`cat $?`"'";' \
  166.     ) >$@
  167.  
  168. ci = ci$(o) rcslex$(o) rcssyn$(o) rcsgen$(o) rcsedit$(o) rcskeys$(o) rcsmap$(o) \
  169.     rcsrev$(o) rcsutil$(o) rcsvers$(o) rcsfnms$(o) partime$(o) maketime$(o) rcskeep$(o) \
  170.     rcsfcmp$(o) $(OTHER_OBJECT)
  171. ci$(x) : $(ci)
  172.     $(LINK) @ms\$*.rsp,$*,nul,$(LDLIBS);
  173.  
  174. co = co$(o) rcslex$(o) rcssyn$(o) rcsgen$(o) rcsedit$(o) rcskeys$(o) rcsmap$(o) \
  175.     rcsrev$(o) rcsutil$(o) rcsvers$(o) rcsfnms$(o) partime$(o) maketime$(o) rcskeep$(o) \
  176.     $(OTHER_OBJECT)
  177. co$(x) : $(co)
  178.     $(LINK) @ms\$*.rsp,$*,nul,$(LDLIBS);
  179.  
  180. ident = ident$(o) rcsmap$(o) $(OTHER_OBJECT)
  181. ident$(x) : $(ident)
  182.     $(LINK) @ms\$*.rsp,$*,nul,$(LDLIBS);
  183.  
  184. merge = merge$(o) merger$(o) rcsfnms$(o) rcslex$(o) \
  185.     rcsmap$(o) rcsrev$(o) rcssyn$(o) rcsutil$(o) rcsvers$(o) \
  186.     rcskeep$(o) rcskeys$(o) $(OTHER_OBJECT)
  187. merge$(x) : $(merge)
  188.     $(LINK) @ms\$*.rsp,$*,nul,$(LDLIBS);
  189.  
  190. rlog = rlog$(o) rcslex$(o) rcsmap$(o) rcssyn$(o) rcsrev$(o) rcsutil$(o) rcsvers$(o) \
  191.     partime$(o) maketime$(o) rcsfnms$(o) rcskeep$(o) rcskeys$(o) $(OTHER_OBJECT)
  192. rlog$(x) : $(rlog)
  193.     $(LINK) @ms\$*.rsp,$*,nul,$(LDLIBS);
  194.  
  195. rcs = rcs$(o) rcslex$(o) rcssyn$(o) rcsrev$(o) rcsutil$(o) rcsvers$(o) rcsgen$(o) \
  196.     rcsedit$(o) rcskeys$(o) rcsmap$(o) rcsfnms$(o) rcskeep$(o) $(OTHER_OBJECT)
  197. rcs$(x) : $(rcs)
  198.     $(LINK) @ms\$*.rsp,$*,nul,$(LDLIBS);
  199.  
  200. rcsclean = rcsclean$(o) rcsedit$(o) rcsfcmp$(o) rcsfnms$(o) rcsgen$(o) rcskeys$(o) $(DIRENT) \
  201.     rcslex$(o) rcsmap$(o) rcsrev$(o) rcssyn$(o) rcsutil$(o) rcsvers$(o) rcskeep$(o) \
  202.     $(OTHER_OBJECT)
  203. rcsclean$(x) : $(rcsclean)
  204.     $(LINK) @ms\$*.rsp,$*,nul,$(LDLIBS);
  205.  
  206. rcsdiff = rcsdiff$(o) rcsutil$(o) rcsvers$(o) rcsfnms$(o) rcsmap$(o) rcsrev$(o) rcssyn$(o) \
  207.     rcslex$(o) maketime$(o) partime$(o) rcskeep$(o) rcskeys$(o) $(OTHER_OBJECT)
  208. rcsdiff$(x) : $(rcsdiff)
  209.     $(LINK) @ms\$*.rsp,$*,nul,$(LDLIBS);
  210.  
  211. rcsmerge = rcsmerge$(o) merger$(o) rcsutil$(o) rcsvers$(o) rcsfnms$(o) rcsmap$(o) rcsrev$(o) \
  212.     rcssyn$(o) rcslex$(o) rcskeep$(o) rcskeys$(o) $(OTHER_OBJECT)
  213. rcsmerge$(x) : $(rcsmerge)
  214.     $(LINK) @ms\$*.rsp,$*,nul,$(LDLIBS);
  215.  
  216. SOURCE=    ci.c co.c ident.c maketime.c merge.c merger.c partime.c rcs.c \
  217.     rcsclean.c rcsdiff.c rcsedit.c rcsfcmp.c rcsfnms.c rcsgen.c \
  218.     rcskeep.c rcskeys.c rcslex.c rcsmap.c rcsmerge.c rcsrev.c rcssyn.c \
  219.     rcsutil.c rlog.c rcsvers.c
  220. OBJECT=    ci$(o) co$(o) ident$(o) maketime$(o) merge$(o) merger$(o) partime$(o) rcs$(o) \
  221.     rcsclean$(o) rcsdiff$(o) rcsedit$(o) rcsfcmp$(o) rcsfnms$(o) rcsgen$(o) \
  222.     rcskeep$(o) rcskeys$(o) rcslex$(o) rcsmap$(o) rcsmerge$(o) rcsrev$(o) rcssyn$(o) \
  223.     rcsutil$(o) rlog$(o) rcsvers$(o)
  224.  
  225. lint : conf.h
  226.     $(LINT) $(CC_D) -DRCS_lint=1 $(SOURCE)
  227.  
  228. conf_h = conf.h
  229. $(OBJECT) : $(conf_h) rcsbase.h
  230.